<%@page import="mindmap.Project"%><%@page import="java.io.PrintWriter"%><%@ page contentType="text/html;charset=UTF-8" %><%@ page import="java.sql.*" %><%@ page import="java.sql.DriverManager" %><%@ page import="java.sql.ResultSet" %><% 

mindmap.ObjectDB db = new mindmap.ObjectDB();
try{
	db.initialiseConnexion();
	mindmap.Project myProject = new Project(db, request.getParameter("id"));
	
	if(myProject.deleteDB()){
		out.print("Le projet a bien été supprimé");
	}else{
		response.setStatus(500,"enregistrement error !");	
	}
	db.closeConnexion();
	
}catch(Exception e){
	response.setStatus(500,"error");	
}
%>
